package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.entity.BaseAttrInfo;
import com.atguigu.gmall.model.search.SearchAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jiamin
* @description 针对表【base_attr_info(属性表)】的数据库操作Mapper
* @createDate 2023-08-14 20:41:58
* @Entity com.atguigu.gmall.product.entity.BaseAttrInfo
*/

public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    List<BaseAttrInfo> attrInfoList(@Param("category1Id") Long category1Id
            ,@Param("category2Id") Long category2Id
            ,@Param("category3Id") Long category3Id);

    List<SearchAttr> getAttrInfoAndValue(Long skuId);
}




